<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/messages.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>修改租户资料</title>
<link href="${ctx}/styles/listTable.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/show.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/styles/public.css" rel="stylesheet" type="text/css">
<link href="${ctx}/styles/aux_window.css" rel="stylesheet" type="text/css">
<%@ include file="/commons/validation.jsp" %>
<%@ include file="/commons/dateTime.jsp" %>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/ajaxException.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/pages/com/ce/pms/customer/tenement.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/ajaxException.js"></script>
<script type="text/javascript">
<% String type = (String)request.getAttribute("type"); %>
var lesseehouseIndex;
var flag_button_click=true;
var sourceValue="";
var tenementFlag = "lessee";
var tipName = "租户";

function openAddHouse(){
  	var url = "${ctx}/customer_lesseeAction.do?method=initLesseeHouseAdd";
	top.windowOpen(url, "houseChoose", "新增住房信息", 230, 450,true,"houseChoose");
}
function openHouseDelete(){
	if(lesseehouseIndex == null){ Alert('请选择一条记录再删除');return false;}
	if(!confirm('你确定删除该记录吗?')) return;
		var str = "index=" + lesseehouseIndex;
		var myAjax = new Ajax.Request("${ctx}/customer_lesseeAction.do?method=deleteCustomerHouseCache",
                   {method: 'post', parameters: str, onComplete: refreshLesseeHouseList});
}
function ajaxSubmit(){
	 var _form = document.forms[0];
	 var isTrue=_form.fireEvent("onSubmit");
	 if(isTrue){
         var url = _form.action;
         var param = $(_form).serialize();
         new Ajax.Request(url,{method:'post',parameters :param ,onSuccess : function(response) {
                 if('true' == response.responseText){
                          flag_button_click=true;
                          parent.setFlagButtonClick(flag_button_click);
                          parent.setFamilyEdit();
                          if($('participantId').value != "")
                           parent.setParticipantId($('participantId').value);
                          parent.freshParent();
                          parent.onClickTabBase();
	              }else if('false' == response.responseText){
                       Alert("对不起，数据不能增加保存，请重新操作");
                  }else if("houseIsNull" == response.responseText) {
	               	   Alert("住房信息不能为空");
	              }else{
	              		ajaxSubmitException(response.responseText);
	              }
		          }
		 })};
}
function closeAjaxSubmit(){
    var _form = document.forms[0];
	var isTrue=_form.fireEvent("onSubmit");
	if(isTrue){
         var url = _form.action;
         var param = $(_form).serialize();
         new Ajax.Request(url,{method:'post',parameters :param ,onComplete : function(response) {
                   if('true' == response.responseText){
                            parent.freshParent();
							parent.close();
							parent.setFlagButtonClick(true);
	               	}else{
                       if('false' == response.responseText){
                       Alert("对不起，数据不能增加保存，请重新操作");
                       }else {
	               	  	ajaxSubmitException(response.responseText);
	               	   }
	               }
		}});
	}
}
function setVar2(Index_){
	lesseehouseIndex = Index_;
}
function getFlagButtonClick(){
	return flag_button_click;
}
function refreshLesseeHouseList(){
	lesseehouseIndex= null;
	document.getElementById("lesseeHouseList").src="${ctx}/customer_lesseeAction.do?method=findLesseeHouseCachePage";
    flag_button_click=false;
    parent.setFlagButtonClick(flag_button_click);
	parent.setFamilyUnEdit();
}
<c:if test="${type eq '001'}">
var individual = null;
var interestObj = null;
</c:if>
<c:if test="${type eq '002'}">
var enterprise = null;
</c:if>
var tempflag = true;
function init(){
	tenementFlag = "lessee";
   <c:if test="${type eq '001'}">
	  individual = new Individual(null,'individualForm');
	  individual.init();
	  interestObj = new Interest('selectedInterest','unSelectInterest');
	  sourceValue=$('individualForm').serialize();
   </c:if>
   <c:if test="${type eq '002'}">
 	  enterprise = new Enterprise('organizationForm');
	  enterprise.init();
	  sourceValue=$('organizationForm').serialize();
   </c:if>
   tempflag = false;
}
function beforeCloseWin(){
	if(tempflag){
		parent.setFlagButtonClick(true);
		return;
	}
	<% if("001".equals(type)){ %>
	       var newValue=$('individualForm').serialize();
	<%}else{%>
		   var newValue=$('organizationForm').serialize();
	<%}%>
	if(sourceValue!=newValue){
		parent.setFamilyUnEdit();
		parent.setFlagButtonClick(false);
	}else{
		parent.setFlagButtonClick(true);
	}
}
</script>
</head>
<body onload="init()">
 <div style="overflow:auto; height:400px;">
 <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" id="tab_subMenu1">
              <tr>
                <td><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
                    <tr>
                      <td><table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color"  style="display:show">
                        <tr>
                          <td colspan="4" class="aux_titletable">住房信息</td>
                        </tr>
                      </table>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab_line">
                        <tr>
                          <td valign="top">
                              <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                              <tr>
                                <td class="bg_toolBar"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="35%" align="right"><table border="0" cellpadding="0" cellspacing="0" id="ico1">
                                          <tr>
                                            <td class="toolbarico"><a href="#"  onclick="openAddHouse()" onfocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="新增"/>&nbsp;</a></td>
                                            <td class="toolbarico"><a href="#" onClick="openHouseDelete();" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="删除" width="16" height="16" border="0" align="absbottom"></a></td>
                                            <td  class="toolbarico">&nbsp;</td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td colspan="5" >
									<iframe id="lesseeHouseList"  name="lesseeHouseList" frameborder="0" src="${ctx}/customer_lesseeAction.do?method=findLesseeHouseCachePage" width="100%" style="z-index:0"></iframe>
								</td>
                              </tr>
                              </table>
                        <input   name="type"   type="hidden"   value="${type}">
						<!-- 个人信息 -->
						<c:if test="${type eq '001'}">
						<form id="individualForm" name="individualForm" method="post" action="${ctx}/customer_lesseeAction.do?method=editLesseeIndividual" class="required-validate">
						<input type="hidden" name="index" value="${individual.index}">
						<input type="hidden" name="participantId" value="${individual.participantId}"/>
						<input type="hidden" name="oldParticipantId" value="${individual.participantId}"/>
						<input type="hidden" name="interest" value="${individual.interest}"/>
						<input type="hidden" id="optionType" name="optionType" value="isEdit">
						<table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="table01" >
                                    <tr>
                                      <td colspan="4" class="aux_titletable">基本资料</td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">姓名：</td>
                                      <td class="aux_intable_require"><input name="participantName" type="text" value="${individual.participantName}" size="16" class="required validate-char" maxlength="80">                                      </td>
                                      <td class="aux_intable_td1">证件类型：</td>
                                      <td class="aux_intable_require">
                                      	<pms:unitedSelect   id="certificateType"
                                      					    selectText="请选择..."
                                      					    value="${individual.certificateType}"
															name="certificateType"
															dataList="${certificateTypes}"
															className="select-one-required"
															optionLabel="idTypeName"
										 					onChange="individual.setInfoByCertificate();"
															optionValue="idTypeId" >
									  </pms:unitedSelect>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">称呼：</td>
                                      <td class="aux_intable_td2"><input name="appellative" type="text" class="validate-char" size="16" value="${individual.appellative}" maxlength="20"> </td>
                                      <td class="aux_intable_td1">证件号码：</td>
                                      <td class="aux_intable_require"><input name="certificateNo" type="text"  size="16" value="${individual.certificateNo}"  onblur="individual.setInfoByCertificate();" class="required validate-char" maxlength="36"></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">性别：</td>
                                      <td class="aux_intable_require"> <mypms:Radio name="sex" code="CS_INDIVIDUAL_SEX" selectValue="${individual.sex}" className="validate-one-required"></mypms:Radio></td>
                                      <td class="aux_intable_td1">联系电话：</td>
                                      <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><input name="telephone" type="text" class="validate-char" size="16" value="${individual.telephone}" maxlength="80"></td>
                                            <td width="4">&nbsp;</td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                    <tr>
                                      <td colspan="4" class="aux_titletable">紧急联系信息</td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">紧急联系人：</td>
                                      <td class="aux_intable_td2"><input name="emergencyMan" type="text" class="validate-char" size="16" value="${individual.emergencyMan}" maxlength="30">                                      </td>
                                      <td class="aux_intable_td1">紧急联系电话：</td>
                                      <td class="aux_intable_td2"><input name="emergencyPhone" type="text" class="validate-char" size="16" value="${individual.emergencyPhone}" maxlength="80">                                      </td>
                                    </tr>
                                    <tr>
                                      <td colspan="4" class="aux_titletable">其他资料</td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">出生日期：</td>
                                      <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><input name="birthDate"
                                                       type="text"
                                                       class="validate-date-yyyy-mm-dd validate-ajax"
                                                       replaceId="dataValue"
                                                       validateUrl="${ctx}/common_sysrefcodeAction.do?method=compareCurrentDate&dateFormat=yyyy-MM-dd&compareType=smallCurrentDate"
                                                       validateMessage="输入的出生日期必须小于当前系统时间"
                                                       size="16"
                                                       value="<fmt:formatDate value="${individual.birthDate}" pattern="yyyy-MM-dd"/>"
                                                       afterInsert="birthDateAfter"
                                                       maxlength="10"></td>
                                            <td width="4">&nbsp;</td>
                                            <td><img id="imgBirthDate" src="${ctx}/images/ico_clock.gif" width="20" height="20"><span id="birthDateAfter"></span></td>
                                          </tr>
                                      </table></td>
                                      <td class="aux_intable_td1">电子邮件：</td>
                                      <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><input name="email" type="text" class="validate-email" size="16" value="${individual.email}" afterInsert="emailAfter" maxlength="50"></td>
                                            <td width="4">&nbsp;</td>
                                            <td><img src="${ctx}/images/ico-aux_household_email.gif" width="16" height="16"><span id="emailAfter"></span></td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">籍贯：</td>
                                      <td class="aux_intable_td2"><input name="homeplace" type="text" class="validate-char"  size="16" value="${individual.homeplace}" maxlength="200"></td>
                                      <td class="aux_intable_td1">车辆情况：</td>
                                      <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><input name="registerCar" type="text" class="validate-char"  size="16" value="${individual.registerCar}" maxlength="200"></td>
                                            <td width="4">&nbsp;</td>
                                            <td>&nbsp;</td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">户口所在地：</td>
                                      <td class="aux_intable_td2"><input name="registerPlace" type="text" class="validate-char" size="16" value="${individual.registerPlace}" maxlength="200"></td>
                                      <td rowspan="2" valign="top" class="aux_intable_td1">兴趣爱好：</td>
                                      <td rowspan="2" class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td>
                                              	<pms:unitedSelect id="unSelectInterest"
                                              					   size="5"
                                              					   multiple="multiple"
                                              					   value="${individual.interest}"
                                              					   style="width:100px;height:60px;color:#000000;border: 1px solid #9299A3;padding-top: 3px;"
                                              					   ondblclick="interestObj.moveToRight()"
																   name="unSelectInterest"
																   dataList="${interestes}"
													               optionLabel="name"
													               optionValue="interestId" >
												</pms:unitedSelect>
                                              </td>
                                            <td><table border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                  <td width="4" style="width:4px;"></td>
                                                  <td width="4" class="between_space_both"></td>
                                                  <td>
                                                  <pms:unitedSelect id="selectedInterest"
                                                  				    size="5"
                                                  				    multiple="multiple"
                                                  				    style="width:100px;height:60px"
                                                  				    ondblclick="interestObj.moveToLeft();"
																	name="selectedInterest"
																	dataList="${IndividualInterestes}"
													 		        optionLabel="name"
													                optionValue="interestId" >
												  </pms:unitedSelect>
                                                  </td>
                                                </tr>
                                            </table></td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">职业：</td>
                                      <td valign="top" class="aux_intable_td2"><input name="profession" type="text" class="validate-char" value="${individual.profession}" size="16" maxlength="30"></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">单位名称：</td>
                                      <td class="aux_intable_td2"><input name="corporation" type="text" class="validate-char" value="${individual.corporation}" size="16" maxlength="100"></td>
                                      <td rowspan="2" valign="top" class="aux_intable_td1">备注：</td>
                                      <td rowspan="2" valign="top" class="aux_intable_td2"><textarea name="remark" cols="29" rows="2" class="max-length-1000" >${individual.remark}</textarea></td>
                                    </tr>
                                    <tr>
                                      <td valign="top" class="aux_intable_td1">联系地址：</td>
                                      <td valign="top" class="aux_intable_td2"><input name="linkAddress" type="text" class="validate-char" value="${individual.linkAddress}" size="16" maxlength="255"></td>
                                    </tr>
                                  </table>
                                  </form>
                                  </c:if>
								<!--  -->
								<!-- 企业 -->
								 <c:if test="${type eq '002'}" >
								 <form name="organizationForm" method="post" action="${ctx}/customer_lesseeAction.do?method=editLesseeOrganization" class="required-validate">
								<input type="hidden" name="index" value="${organization.index}">
								<input type="hidden" id="optionType" name="optionType" value="isEdit">
								<input type="hidden" name="participantId" value="${organization.participantId}"/>
								<input type="hidden" name="oldParticipantId" value="${organization.participantId}"/>
								<input type="hidden" name="corporationId" value="${organization.corporationId}"/>
								<input type="hidden" name="oldCorporationId" value="${organization.corporationId}"/>
								<input type="hidden" name="consignerId" value="${organization.consignerId}"/>
								<input type="hidden" name="oldConsignerId" value="${organization.consignerId}"/>
								 <table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="table02" >
                                    <tr>
                                      <td colspan="4" class="aux_titletable">企业信息</td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">单位名称：</td>
                                      <td class="aux_intable_require"><input name="participantName" type="text" class="required validate-char" size="16" value="${organization.participantName}" maxlength="80" onblur="enterprise.processEnterpriseName(this.value);">                                      </td>
                                      <td class="aux_intable_td1">联系人：</td>
                                      <td class="aux_intable_td2"><input name="organizationLinkMan" type="text" class="validate-char" size="16" value="${organization.organizationLinkMan}" maxlength="80"></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">单位地址：</td>
                                      <td class="aux_intable_td2"><input name="address" type="text" class="validate-char" size="16" value="${organization.address}" maxlength="255"></td>
                                      <td class="aux_intable_td1">联系电话：</td>
                                      <td class="aux_intable_td2"><input name="telephone" type="text" class="validate-char" size="16" value="${organization.telephone}" maxlength="80"></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">邮政编码：</td>
                                      <td class="aux_intable_td2"><input name="zip" type="text" class="validate-char" size="16" value="${organization.zip}" maxlength="30"></td>
                                      <td class="aux_intable_td1">&nbsp;</td>
                                      <td class="aux_intable_td2">&nbsp;</td>
                                    </tr>
                                    <tr>
                                      <td colspan="4" class="aux_titletable">法人基本资料</td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">姓名：</td>
                                      <td class="aux_intable_require"><input name="organizationPersonName" type="text" class="required validate-char" size="16" value="${organization.organizationPersonName}" maxlength="80">                                      </td>
                                      <td class="aux_intable_td1">出生日期：</td>
                                      <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
                                          <tr>

                                            <td><input name="corporationBirthDate"
                                            		   type="text"
                                            		   class="validate-date-yyyy-mm-dd validate-ajax"
                                             		   replaceId="dataValue"
                              						   validateUrl="${ctx}/common_sysrefcodeAction.do?method=compareCurrentDate&dateFormat=yyyy-MM-dd&compareType=smallCurrentDate"
                              						   validateMessage="输入的出生日期必须小于当前系统时间"
                              						   value="<fmt:formatDate value="${organization.corporationBirthDate}" pattern="yyyy-MM-dd"/>"
                              						   size="16"
                              						   afterInsert="bdAfter"
                              						   maxlength="10">
                              				</td>
                                            <td width="4">&nbsp;</td>
                                            <td><img id="imgBirthDateOrgnization" src="${ctx}/images/ico_clock.gif" width="20" height="20"><span id="bdAfter"></span></td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">称呼：</td>
                                      <td class="aux_intable_td2"><input name="appellative" type="text" class="validate-char" size="16" value="${organization.appellative}" maxlength="20"></td>
                                      <td class="aux_intable_td1">联系电话：</td>
                                      <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><input name="organizationPersonPhone" type="text" class="validate-char" size="16" value="${organization.organizationPersonPhone}" maxlength="80"></td>
                                            <td width="4">&nbsp;</td>
                                            <td><img src="${ctx}/images/ico-aux_household_sj.gif" width="16" height="16"></td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">性别：</td>
                                      <td class="aux_intable_require"> <mypms:Radio name="sex" code="CS_INDIVIDUAL_SEX" selectValue="${organization.sex}" className="validate-one-required"></mypms:Radio></td>
                                      <td class="aux_intable_td1">电子邮件：</td>
                                      <td class="aux_intable_td2">
                                      <table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><input id="orgEmail" name="email" type="text" class="validate-email" value="${organization.email}" size="16" afterInsert="emAfter" maxlength="50"></td>
                                            <td width="4">&nbsp;</td>
                                            <td><img src="${ctx}/images/ico-aux_household_email.gif" width="16" height="16"><span id="emAfter"></span></td>
                                          </tr>
                                      </table>
                                      </td>

                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">证件类型：</td>
                                      <td class="aux_intable_require">
                                      <pms:unitedSelect id="certificateType"
														name="certificateType"
														selectText="请选择..."
														dataList="${certificateTypes}"
														value="${organization.certificateType}"
														className="select-one-required"
										 				optionLabel="idTypeName"
										 				onChange="enterprise.corporation();"
														optionValue="idTypeId">
										</pms:unitedSelect>
                                      </td>
                                      <td class="aux_intable_td1">联系地址：</td>
                                      <td class="aux_intable_td2"><input name="linkAddress" type="text" class="validate-char" size="16" value="${organization.linkAddress}" maxlength="255"></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">证件号码：</td>
                                      <td class="aux_intable_require"><input name="certificateNo" type="text" class="required validate-char" size="16"  value="${organization.certificateNo}" onblur="enterprise.corporation();" maxlength="36">                                      </td>
                                      <td rowspan="2" valign="top" class="aux_intable_td1">备注：</td>
                                      <td rowspan="2" valign="top" class="aux_intable_td2"><textarea name="remark" cols="29" rows="2" class="max-length-1000">${organization.remark}</textarea></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">户口所在地：</td>
                                      <td class="aux_intable_td2"><input name="registerPlace" type="text" class="validate-char" size="16" value="${organization.registerPlace}" maxlength="200"></td>
                                    </tr>
                                    <tr>
                                      <td colspan="4" class="aux_titletable">委托代理人</td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">姓名：</td>
                                      <td class="aux_intable_require"><input name="consignerName" type="text" class="required validate-char" size="16" value="${organization.consignerName}" maxlength="80"></td>

                                      <td class="aux_intable_td1">联系电话：</td>
                                      <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><input name="consignerPhone" type="text" class="validate-char" size="16" value="${organization.consignerPhone}" maxlength="80"></td>
                                            <td width="4">&nbsp;</td>
                                            <td><img src="${ctx}/images/ico-aux_household_sj.gif" width="16" height="16"></td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">性别：</td>
                                      <td class="aux_intable_require">
                                      <mypms:Radio name="consignerSex" code="CS_INDIVIDUAL_SEX" selectValue="${organization.consignerSex}" className="validate-one-required"></mypms:Radio>
                                      </td>
                                      <td class="aux_intable_td1">电子邮件：</td>
                                      <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><input name="consignerEmail" type="text" class="validate-email" value="${organization.consignerEmail}" size="16" afterInsert="emlAfter" maxlength="50"></td>
                                            <td width="4">&nbsp;</td>
                                            <td><img src="${ctx}/images/ico-aux_household_email.gif" width="16" height="16"><span id="emlAfter"></span></td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">证件类型：</td>
                                      <td class="aux_intable_require">
                                      <pms:unitedSelect id="consignerCertificateType"
														name="consignerCertificateType"
														selectText="请选择..."
														dataList="${consignerCertificateTypes}" value="${organization.consignerCertificateType}"
														className="select-one-required"
														onChange="enterprise.consigner();"
												 		optionLabel="idTypeName"
														optionValue="idTypeId">
										</pms:unitedSelect></td>
                                      <td class="aux_intable_td1">籍贯：</td>
                                      <td class="aux_intable_td2"><input name="consignerHomeplace" type="text" class="validate-char" value="${organization.consignerHomeplace}" size="16" maxlength="200"></td>
                                    </tr>
                                    <tr>
                                      <td class="aux_intable_td1">证件号码：</td>
                                      <td class="aux_intable_require"><input name="consignerCertificateNo" type="text" class="required validate-char" size="16"  value="${organization.consignerCertificateNo}"  onblur="enterprise.consigner();" maxlength="36">                                      </td>
                                      <td class="aux_intable_td1">联系地址：</td>
                                      <td class="aux_intable_td2"><input name="consignerAddress" type="text" class="validate-char" value="${organization.consignerAddress}" size="16" maxlength="255"></td>
                                    </tr>
                                </table>
                                </form>
                                </c:if>
								<!--  -->
       						</td>
        				</tr>
      				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</div>
<script type="text/javascript">

			 <% if("001".equals(type)){ %>
              Calendar.setup(
              {
	              inputField : "birthDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgBirthDate", // ID of the button
	              align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
			<% } %>
			<% if("002".equals(type)){ %>
              Calendar.setup(
              {
	              inputField : "corporationBirthDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgBirthDateOrgnization", // ID of the button
	              align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
              <% } %>
</script>
</body>
</html>